﻿<StackPanel x:Class="TanmiaGrp.GeneralLedger.WinApp.Scenarios.SaveBar"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             xmlns:loc="clr-namespace:TanmiaGrp.GeneralLedger.WinApp"
             Orientation="Horizontal" 
             FlowDirection="RightToLeft">
    <StackPanel.Resources>
        <Style TargetType="{x:Type mui:ModernButton}">
            <Setter Property="Width" Value="32" />
            <Setter Property="Height" Value="32" />
            <Setter Property="EllipseDiameter" Value="30" />
            <Setter Property="Margin" Value="2,0,0,0" />
            <Setter Property="IconWidth" Value="12" />
            <Setter Property="IconHeight" Value="12" />
            <Setter Property="Background" Value="White" />
            <Setter Property="Foreground" Value="#7f7f7f" />
            <Setter Property="BorderBrush" Value="#c9c9c9" />
            <Setter Property="EllipseStrokeThickness" Value="2" />
        </Style>
    </StackPanel.Resources>

    <mui:ModernButton ToolTip="حفظ وإغلاق" 
                      IconData="{StaticResource SaveAndClose}" 
                      Command="{Binding Path=SaveAndCloseCommand}"
                      CommandParameter="{Binding RelativeSource={RelativeSource Self}}"  />
    
    <mui:ModernButton ToolTip="حفظ وجديد" 
                      IconData="{StaticResource SaveAndNew}" 
                      Command="{Binding Path=SaveAndNewCommand}" />

    <mui:ModernButton ToolTip="حفظ" 
                      IconData="{StaticResource Save}" 
                      Command="{Binding Path=SaveCommand}" />
</StackPanel>
